﻿@model Inscriptionem.Areas.Inscriptionem.Enums.SectionError

@{
    ViewBag.Title = "Inscriptionem » Sections » Delete Section";
    Layout = "../Shared/Layout.cshtml";

    ViewBag.CurrentPage = "Sections";

    string message = string.Empty;

    switch (Model)
    {
        case Inscriptionem.Areas.Inscriptionem.Models.Enums.SectionError.SectionHasContent:
        {
            message = "Selected Section has one or more Categories or Pages.";
            break;
        }

        case Inscriptionem.Areas.Inscriptionem.Models.Enums.SectionError.Other:
        {
            message = "Unknown error occurred, please try again.";
            break;
        }
    }
}

<div class="outer" id="contentwrap">
    @{Html.RenderPartial("NavigationMenu");}
    <div class="postcont">
		<div id="content">
            <div class="post type-post status-publish format-standard hentry">
                <h2 class="title">Delete Section</h2>
                <div class="postdate-single error-message">@message</div>
			</div>
        </div>
	</div>	
</div>
